package com.example.automanagement.service;

import com.example.automanagement.entity.*;
import com.example.automanagement.views.DepartmentRole;

public interface ApplicationService {
    void addAutoOrder(AutoOrder autoOrder);
    void addRepairOrder(RepairOrder repairOrder);
    DepartmentRole getUserIdByDR(String userRole, String userDepartment);

    GeneralRole getUserIdByGn();

    void addTodo(ToDo toDo);

    void updateAutoOrderProgress(String orderId, String autoOrderProgress);

    void updateRepairOrderProgress(String orderId, String repairOrderProgress);

    AutoOrder getAutoOrderIdByTime(String submitTime);

    RepairOrder getRepairOrderIdByTime(String submitTime);
    //根据id设置待办已完成
    void updateTodoDone(String todoType, String orderId);
}
